package com.baize.minespace.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
* <p>
* 资源信息表
* </p>
*
* @author baize
* @since 2024-04-15
* @version ${cfg.version}
*/
@ApiModel(value = "Resources对象", description = "资源信息表")
@ToString
@Data
@Accessors(chain = true)
@TableName("Resources")
public class Resources implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 资源唯一标识符
     */
    @ApiModelProperty(value = "资源唯一标识符")
    @TableId(value = "id", type = IdType.AUTO)
    @TableField("id")
    private Integer id;
    /**
     * 外键，关联到用户表
     */
    @ApiModelProperty(value = "外键，关联到用户表")
    private Integer userId;
    /**
     * 资源名称
     */
    @ApiModelProperty(value = "资源名称")
    private String name;
    /**
     * 资源链接
     */
    @ApiModelProperty(value = "资源链接")
    private String url;
    /**
     * 资源描述
     */
    @ApiModelProperty(value = "资源描述")
    private String description;
    /**
     * 资源添加时间
     */
    @ApiModelProperty(value = "资源添加时间")
    private LocalDateTime createdAt;
    /**
     * 资源更新时间
     */
    @ApiModelProperty(value = "资源更新时间")
    private LocalDateTime updatedAt;
}
